/* 
 * File:   there_level_inheritance.cpp
 * Author: tandaica0612
 *
 * Created on November 23, 2008, 12:44 AM
 */

#include <stdlib.h>
#include <iostream>
using namespace std;
/*
 * 
 */
class A{
public:
    A(){
        cout << "Construct A" << endl;
    }
    ~A(){
        cout << "Destructor A" << endl;
    }
};
class B:public A{
public:
    B(){
        cout << "Construct B" << endl;
    }
    ~B(){
        cout << "Destructor B" << endl;
    }
};
/*
int main(int argc, char** argv) {
    B b1;
    cout << endl;
    B* b2 = new B();
    cout << endl;
    return (EXIT_SUCCESS);
}
 ***/
/*  OUTPUT :
 *
Construct A
Construct B

Construct A
Construct B

Destructor B
Destructor A
  **/

